package iot.ht.controller.htpage.data;

import io.swagger.v3.oas.annotations.media.Schema;
import iot.core.data.BaseDto;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(name = "功能页面授权Dto",description = "")
public class HTPageAuthDto extends BaseDto {

    @Schema(name = "授权代码",description = "网站Url")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  Code ="";

    @Schema(name = "授权名称",description = "")
    @NotBlank(message = "授权名称不能为空")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  Name ="";

    @Schema(name = "备注",description = "")
    private  String  Memo ="";

    @Schema(name = "Urls",description = "支持*号，多个Url逗号分隔")
    private  String  Urls ="";

    @Schema(name = "参数1",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  P1 ="";

    @Schema(name = "参数2",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  P2 ="";

    @Schema(name = "参数3",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  P3 ="";

    @Schema(name = "参数4",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  P4 ="";

    @Schema(name = "排序号",description = "")
    private  Long  SortNo =0L;

}
